From: Ian Campbell Date: Wed, 23 Mar 2011 15:50:29 +0000 (+0000) Subject: tools: provide generic rules for compiling .S files X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=4730c179434b9f410eebfaf9bc00079401a3e98e;p=xen.git tools: provide generic rules for compiling .S files Signed-off-by: Ian Campbell Acked-by: Ian Jackson Committed-by: Ian Jackson --- diff --git a/tools/Rules.mk b/tools/Rules.mk index 49eacb7921..c1a5e053b0 100644 --- a/tools/Rules.mk +++ b/tools/Rules.mk @@ -89,6 +89,11 @@ INSTALL_PYTHON_PROG = \ %.o: %.cc $(CC) $(CPPFLAGS) $(CXXFLAGS) $(CXXFLAGS_$*.o) -c -o $@ $< +%.o: %.S + $(CC) $(CFLAGS) $(CFLAGS_$*.o) -c $< -o $@ +%.opic: %.S + $(CC) $(CPPFLAGS) -DPIC $(CFLAGS) $(CFLAGS.opic) -fPIC -c -o $@ $< + subdirs-all subdirs-clean subdirs-install subdirs-distclean: .phony @set -e; for subdir in $(SUBDIRS) $(SUBDIRS-y); do \ $(MAKE) subdir-$(patsubst subdirs-%,%,$@)-$$subdir; \ diff --git a/tools/libxc/ia64/Makefile b/tools/libxc/ia64/Makefile index 9d4d5ebc77..81f472a78d 100644 --- a/tools/libxc/ia64/Makefile +++ b/tools/libxc/ia64/Makefile @@ -16,13 +16,7 @@ DOMFW_SRCS := $(addprefix ia64/, $(DOMFW_SRCS_BASE)) $(DOMFW_SRCS): ln -sf $(XEN_ROOT)/xen/arch/ia64/xen/$(@F) $@ -# XXX kludge: libxc/Makefile doesn't understand .S. GUEST_SRCS-y += $(patsubst %.S, %.c, $(DOMFW_SRCS)) -%.o: %.S - $(CC) $(CFLAGS) -c $< -o $@ -%.opic: %.S - $(CC) $(CPPFLAGS) -DPIC $(CFLAGS) -fPIC -c -o $@ $< - CFLAGS += -Iia64